package com.itheima.extendsTest.demo_2;

public class manager extends staff{
//    大部分可以继承使用父级，但自己有定制的属性
    private String bonuns;
//   方法可以完全继承父级的

    public manager() {

    }

    public manager(String bonuns) {
        this.bonuns = bonuns;
    }

    public manager(String name, int jobNumb, String salary, String bonuns) {
        super(name, jobNumb, salary);
        this.bonuns = bonuns;
    }

    public String getBonuns() {
        return bonuns;
    }

    public void setBonuns(String bonuns) {
        this.bonuns = bonuns;
    }
}
